home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 1 / PC Actual CD 01.iso / share / dos / graficos / plydat14.arj / PARTORUS.PI < prev    next >
Encoding:
Text File  |  1992-02-04  |  753 b   |  33 lines

  1. # Generic Polyray input File
  2. # Polyray input file: Alexander Enzmann
  3.  
  4. # Set up the camera
  5. viewpoint {
  6.    from <0, 5, -5>
  7.    at   <0, 0,  0>
  8.    up   <0, 1,  0>
  9.    angle 30
  10.    resolution 160, 160
  11.    }
  12.  
  13. # Get various surface finishes
  14. include "colors.inc"
  15.  
  16. # Set up background color & lights
  17. background black
  18. light <10, 10, -20>
  19.  
  20. # Parabolic Torus
  21. define r0 0.6
  22. define r1 0.5
  23. object {
  24. # Put the definition of the surface here
  25.    polynomial x^4 + 2*x^2*y^2 - 2*x^2*z - (r0^2+r1^2)*x^2 + y^4 - 2*y^2*z +
  26.           (r0^2-r1^2)*y^2 + z^2 + (r0^2+r1^2)*z + (r0^2-r1^2)^2
  27.    root_solver Ferrari
  28.    bounds object { sphere <0, 0, 0>, sqrt(12) }
  29.    clips  object { box <-2, -2, -2>, <2, 2, 2> }
  30.    rotate <-20, -30, 0>
  31.    shiny_red
  32.    }
  33.